package com.microservices.cloud.config;

//import com.microservices.cloud.interceptor.FeignRequestInterceptor;
import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {

    @Bean
    Logger.Level feignLoggerLevel()
    {
        return Logger.Level.FULL;
    }

//    @Bean
//    public FeignRequestInterceptor feignRequestInterceptor() {
//        return new FeignRequestInterceptor();
//    }

    @Bean
    Retryer retryer(){
        return new Retryer.Default();
    }

}
